<template>
	<view class="wrap" style="padding-bottom: 60px;">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
			<web-view  :src="weburl" allow="camera 'self'"></web-view>
		
	</view>
</template>
<script>
	import permision from "@/js_sdk/wa-permission/permission.js"
export default {
		data() {
			return {
			weburl:'',
			show: false,
			list: [{
				name: '发起申请'
			}, {
				name: '查看数据',
			}],
			m2mSimflowList:[],
			m2mOrderFlowList:[],
			current: 0,
			status: 'loadmore',
			iconType: 'circle',
			isDot: false,
			loadText: {
						loadmore: '点击加载更多',
						loading: '正在加载...',
						nomore: '没有更多了'
			},
			}
		},
		created(){
			debugger;
			// permision.requestAndroidPermission("android.permission.RECORD_AUDIO");
			// permision.requestAndroidPermission("android.permission.CAMERA");
			// permision.requestAndroidPermission("android.permission.FLASHLIGHT");
			//permision.gotoAppPermissionSetting(); //动态修改权限
			
		},

		onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数
let that=this;
//获取摄像头权限
	permision.requestAndroidPermission("android.permission.CAMERA");
	permision.requestAndroidPermission("android.permission.FLASHLIGHT");
				that.weburl=option.weburl;
	
						
							
						
								// if(!permision.judgeIosPermission("camera") ){
								// 	uni.showModal({
								// 					title: '####需要下列权限才可以正常使用',
								// 					content: "未开启摄像头",
								// 					confirmText: '前往开启',
								// 					success: function(res) {
								// 						if (res.confirm) {
								// 							permision.gotoAppPermissionSetting(); //动态修改权限
								// 						}
								// 					}
								// 				});
								// }
				
			},
		methods: {
			change(index) {
				this.current = index;
			},
			navTo(url) {
				uni.navigateTo({
					url: url
				});
			},
		
		}

	}
</script>
<style lang="scss" scoped>
@import 'index.scss';
page {
	background-color: #f5f5f5;
}
.wrap .search{
	background: #ffffff;
}
.apply-text{
	font-size: 28rpx;
	color: #333333;
	span{
		color: #999999;
	}
}
.user-images{
	width: 28px;
	height:28px;
	margin-right: 8px;
}
.apply-list-foot{
	font-size: 28rpx;
}
.personnel-list{
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	.personnel-user{
		position: relative;
		margin: 5px 9px 0;
	}
	.user-images{
		width: 48px;
		height:48px;
		margin-right:0;
		
	}
	.iconfont{
		position: absolute;
		top:-12px;
		right:-5px;
		color: #FE0100;
	}
}
</style>
